package pers.wq.controller;

import java.util.Map;

import pers.wq.BaseController;
import pers.wq.model.StudentModel;

public class Student extends BaseController{
	public static String TABLE_XML = "table4student.xml";
	private StudentModel user;
	public String login(){
		return this.login(getUser(), CAT_STUDENT);
	}
	
	public String studentManager(){
		return this.easyJson(mkControllerMap("student","sid"));
	}
	
	public String srptManager(){
		return this.easyJson(mkControllerMap("srpt","srptid"));
	}
	
	protected Map<String, Object> mkControllerMap(String tableid,String idKey) {
		// TODO Auto-generated method stub
		return this.mkControllerMap(TABLE_XML, tableid, idKey);
	}
	public StudentModel getUser() {
		return user;
	}
	public void setUser(StudentModel user) {
		this.user = user;
	}
	
}
